package com.cloudeasy.provider.service;

import com.cloudeasy.provider.model.dto.sms.SmsMessage;

import javax.servlet.http.HttpServletResponse;

/**
 * Create By 郭金宝 on 2019/1/14.<br>
 */
public interface SmsService {
    /**
     * Send sms code.
     *
     * @param smsMessage the sms message
     * @param ipAddr     the ip addr
     */
    void sendSmsCode(SmsMessage smsMessage, String ipAddr);

    /**
     * Submit reset pwd phone.
     *
     * @param mobile   the mobile
     * @param response the response
     *
     * @return the string
     */
    String submitResetPwdPhone(String mobile, HttpServletResponse response);
}